Cosmetics
authorMatthias Clasen <mclasen@redhat.com>
Sat, 3 Jul 2021 13:10:27 +0000 (09:10 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 3 Jul 2021 13:10:27 +0000 (09:10 -0400)
Amend LD_PRELOAD instead of replacing it, so you can just
point it at the right libgtk-4.so while running squares.py
from elsewhere.

examples/squares.py

index 5aea3d32cd714bb7c8a8dc0775ce7dbf36fb723b..7e46c7f94ade16ca935ac04ece56b398c8930264 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env -S GI_TYPELIB_PATH=${PWD}/build/gtk:${GI_TYPELIB_PATH} LD_PRELOAD=${PWD}/build/gtk/libgtk-4.so python3
+#!/usr/bin/env -S GI_TYPELIB_PATH=${PWD}/build/gtk:${GI_TYPELIB_PATH} LD_PRELOAD=${LD_PRELOAD}:${PWD}/build/gtk/libgtk-4.so python3
 
 import gi